<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title>Hello mdui</title>
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<script type="text/javascript" src="../../statics/common/js/header.js"></script>
		<!--标准mdui.css-->
		<link rel="stylesheet" href="../../statics/mdui/css/mdui.min.css">
		<!--App自定义的css-->
		<link rel="stylesheet" type="text/css" href="../../statics/mdui/css/app.css" />
		<style>
			h5 {
				margin: 5px 7px;
			}
		</style>
	</head>

	<body>
		<header class="mdui-bar mdui-bar-nav">
			<a class="mdui-action-back mdui-icon mdui-icon-left-nav mdui-pull-left"></a>
			<h1 class="mdui-title">input（输入框）</h1>
		</header>
		<div class="mdui-content">
			<div class="mdui-content-padded" style="margin: 5px;">
				<h5>默认搜索框：</h5>
				<div class="mdui-input-row mdui-search">
					<input type="search" class="mdui-input-clear" placeholder="">
				</div>
				<h5 class="mdui-plus-visible">语音输入搜索框：</h5>
				<div class="mdui-input-row mdui-search mdui-plus-visible">
					<input id="search" type="search" class="mdui-input-speech mdui-input-clear" placeholder="带语音输入的搜索框">
				</div>
				<h5>密码框：</h5>
				<div class="mdui-input-row mdui-password">
					<input type="password" class="mdui-input-password">
				</div>
				<form class="mdui-input-group">
					<div class="mdui-input-row">
						<label>Input</label>
						<input type="text" placeholder="普通输入框">
					</div>
					<div class="mdui-input-row">
						<label>Input</label>
						<input type="text" class="mdui-input-clear" placeholder="带清除按钮的输入框">
					</div>

					<div class="mdui-input-row mdui-plus-visible">
						<label>Input</label>
						<input type="text" class="mdui-input-speech mdui-input-clear" placeholder="语音输入">
					</div>
					<div class="mdui-button-row">
						<button type="button" class="mdui-btn mdui-btn-primary" onclick="return false;">确认</button>&nbsp;&nbsp;
						<button type="button" class="mdui-btn mdui-btn-danger" onclick="return false;">取消</button>
					</div>
				</form>
				<div class="mdui-input-row" style="margin: 10px 5px;">
					<textarea id="textarea" rows="5" placeholder="多行文本框"></textarea>
				</div>
			</div>
		</div>
		<script src="../../statics/mdui/js/mdui.min.js"></script>
		<script>
			mdui.init({
				swipeBack: true //启用右滑关闭功能
			});
			 //语音识别完成事件
			document.getElementById("search").addEventListener('recognized', function(e) {
				console.log(e.detail.value);
			});
		</script>
	</body>

</html>